﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Cherry.Agile.Security;
using System.Web;
//using Microsoft.Practices.EnterpriseLibrary.Caching;
//using Microsoft.Practices.EnterpriseLibrary.Caching.Expirations;
using System.Security.Principal;

namespace Cherry.Agile.ServiceModel.Security
{
    /// <summary>
    /// 
    /// </summary>
    internal class AuthrizationCacheStorage : DefatultCacheStorage, IDisposable
    {
        const string cacheKey = "__authrization";
        public AuthrizationCacheStorage(ITokenProvider provider)
            : base()
        {

        }

        /// <summary>
        /// 
        /// </summary>
        protected override TimeSpan ItemExpiration
        {
            get
            {
                return TimeSpan.FromMinutes(25); //new CacheItemExpiration();
            }
        }

        public void Dispose()
        {

        }
    }
}
